slider - fixing bug with percantage based layout