slider resize fix