rounding functions added for step by step sliding