cursor position calculation fix
get track length helper method

to simplify position calculation