Fix sliding problem with jqery call