Gallery controls fix