float change on gallery