fix subtitles position and generate css for it