calculate left position dynamically