Fix positioning on gallery views