Removed unnecessary generated element from slider