prevent elastic sliding