Of course, table games and slot machines depend largely on luck but someone who has the ability to count cards in table games can increase their chances of winning depending on their ability by guessing the next cards or evaluating the possibilities of which cards their opponent may have. Of course, this isn't something that is valid for everyone but the advantage of being able to count cards generally increases the probability of winning table games for people who have this ability. So, it wouldn't be wrong to state that skill or intelligence has some importance in table games.
In slot machines, the only thing that determines the winning factor is luck and skill or analysis certainly doesn't matter in such games. In slot games, unfortunately calculating the possible odds or adjusting the symbols you expect to appear doesn't occur with any skill and depends entirely on the luck factor. In other words, it isn't possible to state that any skill or analysis is required to increase the chances of winning in slot games.