Move marker so as it does not overlap with viewport